<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>5.2 比较大小</title>
</head>

<body>
    <script>
        var x = prompt('x=');
        var y = prompt('y=');
        alert(x > y ? y : x)
    </script>
</body>

</html>